<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>子墨商城后台管理</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/bootstrap.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/font-awesome-4.7.0/css/font-awesome.css" />

    <!-- page specific plugin styles -->

    <!-- text fonts -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/fonts.googleapis.com.css" />

    <!-- ace styles -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

    <!--[if lte IE 9]>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/ace-part2.min.css" class="ace-main-stylesheet" />
    <![endif]-->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/ace-skins.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/ace-rtl.min.css" />

    <!--[if lte IE 9]>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/ace-ie.min.css" />
    <![endif]-->

    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/jquery-ui.custom.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/chosen.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/bootstrap-datepicker3.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/bootstrap-timepicker.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/daterangepicker.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/bootstrap-datetimepicker.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/bootstrap-colorpicker.min.css" />

    <!-- inline styles related to this page -->

    <!-- ace settings handler -->
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/ace-extra.min.js"></script>

    <%--echarts--%>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/echarts.js" charset="UTF-8"></script>

    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

    <!--[if lte IE 8]>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/html5shiv.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/respond.min.js"></script>
    <![endif]-->

    <!-- basic scripts -->

    <!--[if !IE]> -->
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery-2.1.4.min.js"></script>

    <!-- <![endif]-->

    <!--[if IE]>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery-1.11.3.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        if('ontouchstart' in document.documentElement) document.write("<script src='${pageContext.request.contextPath}/asserts/backstage/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
    </script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/bootstrap.min.js"></script>

    <!-- page specific plugin scripts -->

    <!--[if lte IE 8]>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/excanvas.min.js"></script>
    <![endif]-->
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery-ui.custom.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery.ui.touch-punch.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery.easypiechart.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery.sparkline.index.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery.flot.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery.flot.pie.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery.flot.resize.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/chosen.jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/spinbox.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/moment.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/autosize.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery.inputlimiter.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/jquery.maskedinput.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/bootstrap-tag.min.js"></script>
    <!-- ace scripts -->
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/ace-elements.min.js"></script>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/ace.min.js"></script>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/asserts/backstage/css/bootstrapValidator.min.css"/>
    <script src="${pageContext.request.contextPath}/asserts/backstage/js/bootstrapValidator.min.js"></script>

</head>
<c:if test="${sessionScope.user.isadmin != 1}">
	<script>
		alert('只有管理员才有权限访问后台');
		window.location.href = '${pageContext.request.contextPath}/index';
	</script>
</c:if>
<body class="no-skin">
    <div id="navbar" class="navbar navbar-default ace-save-state">
        <div class="navbar-container ace-save-state" id="navbar-container">
            <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
                <span class="sr-only">Toggle sidebar</span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>
            </button>

            <div class="navbar-header pull-left">
                <a href="#" class="navbar-brand">
                    <small>
                        <i class="fa fa-shopping-bag"></i>
                        子墨商城后台管理
                    </small>
                </a>
            </div>

            <div class="navbar-buttons navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">

                    <li class="light-blue dropdown-modal">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <span class="user-info" style="vertical-align: middle;top: 0">
                                <small>欢迎,管理员</small>
                            </span>
                            <i class="ace-icon fa fa-caret-down"></i>
                        </a>

                        <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">

                            <li>
                                <a href="${pageContext.request.contextPath}/user?method=logout">
                                    <i class="ace-icon fa fa-power-off"></i>
                                    退出登录
                                </a>
                            </li>
                        </ul>
                    </li>

                </ul>
            </div>
        </div><!-- /.navbar-container -->
    </div>

    <div class="main-container ace-save-state" id="main-container">
        <script type="text/javascript">
            try{ace.settings.loadState('main-container')}catch(e){}
        </script>

        <div id="sidebar" class="sidebar responsive ace-save-state">
            <script type="text/javascript">
                try{
                	ace.settings.loadState('sidebar');
                }catch(e){

                }
            </script>

            <div class="sidebar-shortcuts" id="sidebar-shortcuts">
                <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                    <button class="btn btn-success">
                        <i class="ace-icon fa fa-signal"></i>
                    </button>

                    <button class="btn btn-info">
                        <i class="ace-icon fa fa-pencil"></i>
                    </button>

                    <button class="btn btn-warning">
                        <i class="ace-icon fa fa-users"></i>
                    </button>

                    <button class="btn btn-danger">
                        <i class="ace-icon fa fa-cogs"></i>
                    </button>
                </div>

                <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                    <span class="btn btn-success"></span>

                    <span class="btn btn-info"></span>

                    <span class="btn btn-warning"></span>

                    <span class="btn btn-danger"></span>
                </div>
            </div><!-- /.sidebar-shortcuts -->

            <ul class="nav nav-list">
                <li class="active">
                    <a href="#">
                        <i class="menu-icon fa fa-tachometer"></i>
                        <span class="menu-text"> 网站综合管理 </span>
                    </a>

                    <b class="arrow"></b>
                </li>

                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-users "></i>
                        <span class="menu-text">
                            用户管理
                        </span>

                        <b class="arrow fa fa-angle-down"></b>
                    </a>

                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li>
                            <a href="${pageContext.request.contextPath}/userManage?method=userListPage">
                                <i class="menu-icon fa fa-caret-right"></i>
                                用户列表
                            </a>
                        </li>
                    </ul>
                </li>

                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-shopping-bag"></i>
                        <span class="menu-text">
                            商品管理
                        </span>

                        <b class="arrow fa fa-angle-down"></b>
                    </a>

                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li>
                            <a href="${pageContext.request.contextPath}/productManage?method=editProductPage">
                                <i class="menu-icon fa fa-caret-right"></i>
                                新增商品
                            </a>
                        </li>

                        <li>
                            <a href="${pageContext.request.contextPath}/productManage?method=productListPage">
                                <i class="menu-icon fa fa-caret-right"></i>
	                            商品列表
                            </a>
                        </li>
                    </ul>
                </li>

	            <li class="">
		            <a href="#" class="dropdown-toggle">
			            <i class="menu-icon fa fa-first-order"></i>
			            <span class="menu-text">
                            订单管理
                        </span>

			            <b class="arrow fa fa-angle-down"></b>
		            </a>

		            <b class="arrow"></b>

		            <ul class="submenu">
			            <li>
				            <a href="${pageContext.request.contextPath}/orderManage?method=orderListPage">
					            <i class="menu-icon fa fa-caret-right"></i>
					            订单列表
				            </a>
			            </li>
		            </ul>
	            </li>

	            <li class="">
		            <a href="#" class="dropdown-toggle">
			            <i class="menu-icon fa fa-list"></i>
			            <span class="menu-text">
                            商品分类管理
                        </span>

			            <b class="arrow fa fa-angle-down"></b>
		            </a>

		            <b class="arrow"></b>

		            <ul class="submenu">
			            <li>
				            <a href="${pageContext.request.contextPath}/categoryManage?method=editCategoryPage">
					            <i class="menu-icon fa fa-caret-right"></i>
					            新增商品分类
				            </a>
			            </li>

			            <li>
				            <a href="${pageContext.request.contextPath}/categoryManage?method=categoryListPage">
					            <i class="menu-icon fa fa-caret-right"></i>
					            商品分类列表
				            </a>
			            </li>

		            </ul>
	            </li>

            </ul><!-- /.nav-list -->

            <!--折叠按钮-->
            <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
            </div>
        </div>

</body>
</html>